package com.gxa.orderManagement.feign;


import com.gxa.common.entity.usermange.VipUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "user-management-service")
public interface UserFeign {

    @RequestMapping(value = "/findIdsByNickname" , method = RequestMethod.GET)
    List<Long> findIdsByNickname(@RequestParam(value = "vipuserName") String vipuserName);

    @RequestMapping(value = "/findAllById" , method = RequestMethod.GET)
    VipUser findAllById(@RequestParam(value = "id") Long id);
}
